<?php
namespace Admin\Controller;
use Think\Controller;

class AdminuserController extends BaseController{

    public function  addUser(){


    }

   /*
    * 添加超级管理员时，添加一条relation记录
    * */

    public function doRelation($uid){
        $Relation = M('relation');

        $arr_relation['uid'] = $uid;
        $arr_relation['pid'] = 0;
        $arr_relation['p1'] = 0;
        $arr_relation['p2'] = 0;
        $arr_relation['p3'] = 0;
        $arr_relation['p4'] = 0;
        $arr_relation['p5'] = 0;
        $arr_relation['p6'] = 0;

        $res = $Relation->add($arr_relation);
    }

}